import React from 'react'
import { withRouter } from "react-router-dom";
class Bar extends React.Component {
    goBack() {
        console.log(this)
        this.props.history.goBack()
        // this.props.history.goBack()
    }
    render() {
        return (
                <div className='Tit-d1 center'>
                    <img alt='' src={this.props.zz?require('../static/img/Right.png'):require('../static/img/Right2.png')} onClick={this.goBack.bind(this)}></img>
                    <p>{this.props.tit}</p>
                </div>
        )
    }
}

export default withRouter(Bar)